<!--Descriptive page name, messages and instructions-->
<h2><%= t('.history', :default => 'History') %></h2>
<!--/descriptions-->

<!--subnav-->
<% if logged_in? && !current_user.readings.empty? %>
<ul class="navigation" role="navigation">
  <li>
    <% if params[:show] == 'to-read' %>
      <%= link_to "Show Full History", user_readings_path(@user) %>
    <% else %>
      <%= link_to "Show Works You Saved to Read Later", user_readings_path(@user, :show => 'to-read') %>
    <% end %>
  </li>
  <li>
  <%= link_to t('.clear_history', :default => 'Clear Viewing History'), clear_user_readings_path(current_user), :confirm => t('.links.are_you_sure', :default => 'Are you sure?'), :method => :post %>
  </li>
</ul>
<% end %>
<!--/subnav-->

<!--main content-->
<% if logged_in? && !current_user.readings.empty? %>
    <%= render :partial => 'reading', :collection => @readings %>
<% end %>
<!--/content-->

<!--subnav-->
	  <%= will_paginate @readings, :prev_label =>  "&laquo; " + t('.pagination.previous', :default => "Previous") ,:next_label => t('.pagination.next', :default => "Next") + " &raquo;" %>
<!--/subnav-->
